<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title></title>
<%@ include file="/WEB-INF/views/include/easyui.jsp"%>
</head>
<body>
	<div>
		<form id="uploadform" action="${ctx}/product/${action}"
			method="post" enctype="multipart/form-data">
			<input type="hidden" name="id" value="${id}" />
			<table class="formTable" align="center"
				style="border-collapse: separate; border-spacing: 10px;">
				<tr>
					<td>图片上传：</td>
					<td><input id="img" name="img" type="file"
						class="easyui-validatebox"
						data-options="width: 310,required:'required'" /></td>
				</tr>
			</table>
		</form>
	</div>
	<script type="text/javascript">
		$('#uploadform').form({
			onSubmit : function() {
				var isValid = $(this).form('validate');
				return isValid; // 返回false终止表单提交
			},
			success : function(data) {
				successTip(data, null, d);
			}
		});
	</script>
</body>
</html>